#!/bin/bash
diskpace() {
    df -k
}

whoseon(){
    who
}

memusage(){
    cat /proc/meminfo | less
}



PS3="Enter option: "
select option in "Display disk space" "Display logged on users" "Display memory usage" "Exit program"
do
case $option in
    "Exit program")
        break;;
    "Display disk space")
        diskpace;;
    "Display logged on users")
        whoseon;;
    "Display memory usage")
        memusage;;
    *)
        clear
        echo "Sorry ,wrong selection"
esac
done

